namespace Jumpton.SFA.Server.Entity {
    using System;
    using System.Collections.Generic;
    using System.Text;
    using Jumpton.Persistent;
    using System.Data;
    using System.Runtime.Serialization;
    
    
    [System.SerializableAttribute()]
    [Map("CONTACT_TIMES")]
    public class CONTACT_TIMES : ObjectRow {
        
        public CONTACT_TIMES() {
        }
        
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="dataRow">DataTable 中的一行数据</param>
        /// <param name="objectTable">存储当前对象的数据表格</param>
        public CONTACT_TIMES(System.Data.DataRow dataRow, ObjectTable parent) : 
                base(dataRow, parent) {
        }
        
        /// <summary>
        /// 供反序列化使用的构造函数
        /// </summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        protected CONTACT_TIMES(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : 
                base(info, context) {
        }
        
        [Key("ID",true,true)]
        public decimal ID {
            get {
                return (System.Decimal)GetValue("ID");
            }
            set {
                SetValue("ID", value);
            }
        }
        
        [Field("MONDAY_FROM")]
        public string MONDAYFROM {
            get {
                return (System.String)GetValue("MONDAYFROM");
            }
            set {
                SetValue("MONDAYFROM", value);
            }
        }
        
        [Field("MONDAY_TO")]
        public string MONDAYTO {
            get {
                return (System.String)GetValue("MONDAYTO");
            }
            set {
                SetValue("MONDAYTO", value);
            }
        }
        
        [Field("TUESDAY_FROM")]
        public string TUESDAYFROM {
            get {
                return (System.String)GetValue("TUESDAYFROM");
            }
            set {
                SetValue("TUESDAYFROM", value);
            }
        }
        
        [Field("TUESDAY_TO")]
        public string TUESDAYTO {
            get {
                return (System.String)GetValue("TUESDAYTO");
            }
            set {
                SetValue("TUESDAYTO", value);
            }
        }
        
        [Field("WEDNESDAY_FROM")]
        public string WEDNESDAYFROM {
            get {
                return (System.String)GetValue("WEDNESDAYFROM");
            }
            set {
                SetValue("WEDNESDAYFROM", value);
            }
        }
        
        [Field("WEDNESDAY_TO")]
        public string WEDNESDAYTO {
            get {
                return (System.String)GetValue("WEDNESDAYTO");
            }
            set {
                SetValue("WEDNESDAYTO", value);
            }
        }
        
        [Field("THURSDAY_FROM")]
        public string THURSDAYFROM {
            get {
                return (System.String)GetValue("THURSDAYFROM");
            }
            set {
                SetValue("THURSDAYFROM", value);
            }
        }
        
        [Field("THURSDAY_TO")]
        public string THURSDAYTO {
            get {
                return (System.String)GetValue("THURSDAYTO");
            }
            set {
                SetValue("THURSDAYTO", value);
            }
        }
        
        [Field("FRIDAY_FROM")]
        public string FRIDAYFROM {
            get {
                return (System.String)GetValue("FRIDAYFROM");
            }
            set {
                SetValue("FRIDAYFROM", value);
            }
        }
        
        [Field("FRIDAY_TO")]
        public string FRIDAYTO {
            get {
                return (System.String)GetValue("FRIDAYTO");
            }
            set {
                SetValue("FRIDAYTO", value);
            }
        }
        
        [Field("SATURDAY_FROM")]
        public string SATURDAYFROM {
            get {
                return (System.String)GetValue("SATURDAYFROM");
            }
            set {
                SetValue("SATURDAYFROM", value);
            }
        }
        
        [Field("SATURDAY_TO")]
        public string SATURDAYTO {
            get {
                return (System.String)GetValue("SATURDAYTO");
            }
            set {
                SetValue("SATURDAYTO", value);
            }
        }
        
        [Field("SUNDAY_FROM")]
        public string SUNDAYFROM {
            get {
                return (System.String)GetValue("SUNDAYFROM");
            }
            set {
                SetValue("SUNDAYFROM", value);
            }
        }
        
        [Field("SUNDAY_TO")]
        public string SUNDAYTO {
            get {
                return (System.String)GetValue("SUNDAYTO");
            }
            set {
                SetValue("SUNDAYTO", value);
            }
        }
        
        [Field("COMMENTS")]
        public string COMMENTS {
            get {
                return (System.String)GetValue("COMMENTS");
            }
            set {
                SetValue("COMMENTS", value);
            }
        }
        
        [Field("REC_USER_CODE")]
        public string RECUSERCODE {
            get {
                return (System.String)GetValue("RECUSERCODE");
            }
            set {
                SetValue("RECUSERCODE", value);
            }
        }
        
        [Field("LAST_UPDATE_TIME")]
        public System.DateTime LAST_UPDATE_TIME {
            get {
                return (System.DateTime)GetValue("LAST_UPDATE_TIME");
            }
            set {
                SetValue("LAST_UPDATE_TIME", value);
            }
        }
    }
}
